#include "main.h"





int main (void)
{
	wdt_reset();	
	wdt_disable();


	//initialize lcd
	lcd_init(LCD_DISP_ON);
	
	spiMasterInit();
	unsigned char txBuffer[10];
	unsigned char rxBuffer[10];
	txBuffer[0]=11;
	txBuffer[1]=22;

			
	while(1){			
		//transmit spi data				
		spiMasterReadWrite(txBuffer,rxBuffer,2);		
		
		lcd_clrscr();
		lcd_puti(rxBuffer[0],3);
		lcd_gotoxy(0,1);
		lcd_puti(rxBuffer[1],3);
		
		_delay_ms(500);
	}	
	
	
	
}


